<% gcp_project_id = "#{external_attribute(pwd, 'gcp_project_id', doc_generation)}" -%>
<% gcp_storage_bucket_name = "#{external_attribute(pwd, 'gcp_storage_bucket_name', doc_generation)}" -%>
<% backend_bucket = grab_attributes(pwd)['backend_bucket'] -%>
describe google_compute_backend_buckets(project: <%= gcp_project_id -%>, name: <%= doc_generation ? "'#{backend_bucket['name']}'" : "backend_bucket['name']" -%>) do
  its('descriptions') { should include <%= doc_generation ? "'#{backend_bucket['description']}'" : "backend_bucket['description']" -%> }
<% if doc_generation # bucket name is partially random, this ruins VCR in integration tests -%>
  its('bucket_names') { should include <%= gcp_storage_bucket_name -%> }
<% end -%>
end